home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java Primer Plus
/
Java Primer Plus (Waite Group Proess)(1996).iso
/
chapter16
/
MyNativeClass.java
< prev
next >
Wrap
Text File
|
1995-12-31
|
250b
|
14 lines
/* Simple class to illustrate native methods */
public class MyNativeClass {
private int x;
private int y;
public int returnx() { return x; }
public int returny() { return y; }
native void setx(int myx);
native void sety(int myy);
}